﻿using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Geometry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DGIS.Service.IService.IDataService
{
    public interface IDataCreateService
    {
        /// <summary>
        /// 创建内存图层
        /// </summary>
        /// <param name="spatialReference"></param>
        /// <param name="geometryType"></param>
        /// <param name="fields"></param>
        /// <returns></returns>
        IFeatureClass CreateMemoryFeatureClass(ISpatialReference spatialReference, esriGeometryType geometryType, Dictionary<string, esriFieldType> fields);

        /// <summary>
        /// 创建shp图层
        /// </summary>
        /// <param name="spatialReference"></param>
        /// <param name="geometryType"></param>
        /// <param name="fields"></param>
        /// <param name="shpPath"></param>
        /// <returns></returns>
        IFeatureClass CreateShpFeatureClass(ISpatialReference spatialReference, esriGeometryType geometryType, Dictionary<string, esriFieldType> fields, string shpPath);        
    }
}
